package cn.ruituo.web;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

import java.util.*;

/**
 * @author oldliu
 * @since 1.0
 */
@ConfigurationProperties(prefix = "myschool")
@Component
public class MyConfig {
    private String uploadpath;
    private List<String> filetype=new ArrayList<>(0);

    public String[] getX() {
        return x;
    }

    public void setX(String[] x) {
        this.x = x;
    }

    private String []x;

    public Map<String, String> getLog() {
        return log;
    }

    public void setLog(Map<String, String> log) {
        this.log = log;
    }

    private Map<String,String> log=new HashMap<>();
    public List<String> getFiletype() {
        return filetype;
    }

    public String getUploadpath() {
        return uploadpath;
    }

    public void setUploadpath(String uploadpath) {
        this.uploadpath = uploadpath;
    }

    public void setFiletype(List<String> filetype) {
        this.filetype = filetype;
    }

    @Override
    public String toString() {
        return "MyConfig{" +this.uploadpath+","+
                "filetype=" + filetype +
                ", x=" + Arrays.toString(x) +
                ", log=" + log +
                '}';
    }
}
